{menuList}
<br>
<span id="hktime"></span>，<span id="countdownstr"></span>

<form method="post" action="op.php?op=admin&fp=unow9a&select={selectid}" onsubmit="return chkform(this)">
<input type=hidden name="lotto_id" value={lotto_id}>

<table border="0" width="660" cellspacing="1" cellpadding="2">
	<tr>
		<td bgcolor="#5A79C6" align="center">
		<font color="#FFFFFF">总注额</font></td>
		<td bgcolor="#C0D6EB" align="center" colspan=3><a href="op.php?op=agent&fp=betlist1&dt1={dt}&dt2={dt}&bettype=12&page=-1&order=2">{money}</a>&#12288;(&nbsp;{win}&nbsp;)</td>

	</tr>
	<tr>
		<td bgcolor="#5A79C6" align="center">
		<font color="#FFFFFF">正码序</font></td>
		<td bgcolor="#5A79C6" align="center">
		<font color="#FFFFFF">项目&#12288;/&#12288;赔率</font></td>
		<td bgcolor="#5A79C6" align="center">
		<font color="#FFFFFF">项目&#12288;/&#12288;赔率</font></td>
		<td bgcolor="#5A79C6" align="center">
		<font color="#FFFFFF">项目&#12288;/&#12288;赔率</font></td>
	</tr>	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码一</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r1_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_1_1 value="{r12_1_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r1_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_1_2 value="{r12_1_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r1_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_1_3 value="{r12_1_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r1_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_1_4 value="{r12_1_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r1_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_1_5 value="{r12_1_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r1_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_1_6 value="{r12_1_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r1_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_1_7 value="{r12_1_7}" size=4></td>
	</tr>

	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码二</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r2_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_2_1 value="{r12_2_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r2_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_2_2 value="{r12_2_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r2_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_2_3 value="{r12_2_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r2_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_2_4 value="{r12_2_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r2_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_2_5 value="{r12_2_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r2_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_2_6 value="{r12_2_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r2_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_2_7 value="{r12_2_7}" size=4></td>
	</tr>

	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码三</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r3_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_3_1 value="{r12_3_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r3_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_3_2 value="{r12_3_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r3_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_3_3 value="{r12_3_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r3_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_3_4 value="{r12_3_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r3_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_3_5 value="{r12_3_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r3_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_3_6 value="{r12_3_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r3_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_3_7 value="{r12_3_7}" size=4></td>
	</tr>

	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码四</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r4_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_4_1 value="{r12_4_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r4_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_4_2 value="{r12_4_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r4_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_4_3 value="{r12_4_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r4_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_4_4 value="{r12_4_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r4_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_4_5 value="{r12_4_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r4_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_4_6 value="{r12_4_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r4_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_4_7 value="{r12_4_7}" size=4></td>
	</tr>

	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码五</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r5_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_5_1 value="{r12_5_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r5_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_5_2 value="{r12_5_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r5_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_5_3 value="{r12_5_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r5_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_5_4 value="{r12_5_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r5_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_5_5 value="{r12_5_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r5_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_5_6 value="{r12_5_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r5_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_5_7 value="{r12_5_7}" size=4></td>
	</tr>

	<tr>
	    <td rowspan=3 bgcolor="#5A79C6" align="center"><span style="color:#ffffff;font-weight:bold;">正码六</span></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r6_1 value="1"> <span style="color:#000000;font-weight:bold;">单
	        &#12288;&#12288;<input name=r12_6_1 value="{r12_6_1}" size=4></td>
	    <td bgcolor="#FFFFFF"><input type=radio name=r6_1 value="2"> <span style="color:#000000;font-weight:bold;">双
	        &#12288;&#12288;<input name=r12_6_2 value="{r12_6_2}" size=4></td>
		<td bgcolor="#FFFFFF"></td>
	</tr>
	<tr>
	    <td bgcolor="#E7EBEF"><input type=radio name=r6_2 value="1"> <span style="color:#000000;font-weight:bold;">大
	        &#12288;&#12288;<input name=r12_6_3 value="{r12_6_3}" size=4></td>
	    <td bgcolor="#E7EBEF"><input type=radio name=r6_2 value="2"> <span style="color:#000000;font-weight:bold;">小
	        &#12288;&#12288;<input name=r12_6_4 value="{r12_6_4}" size=4></td>
		<td bgcolor="#E7EBEF"></td>
	</tr>
	<tr>
	    <td bgcolor="#C0D6EB"><input type=radio name=r6_3 value="1"> <span style="color:#ef0000;font-weight:bold;">红波
	        &#12288;<input name=r12_6_5 value="{r12_6_5}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r6_3 value="2"> <span style="color:#0000ef;font-weight:bold;">蓝波
	        &#12288;<input name=r12_6_6 value="{r12_6_6}" size=4></td>
	    <td bgcolor="#C0D6EB"><input type=radio name=r6_3 value="3"> <span style="color:#006a00;font-weight:bold;">绿波
	        &#12288;<input name=r12_6_7 value="{r12_6_7}" size=4></td>
	</tr>
</table>
<br>
<table width="660"  cellpadding=1 cellspacing=2 border=1>
	<tr><td class=td5 align=center nowrap>&nbsp;过关走飞&nbsp;</td><td nowrap>
	<span style="float: left">&nbsp;&nbsp;退水
	<input name=b91 value="{b91}" size=3>&nbsp;&nbsp;金额
	<input name=b92 value="{b92}" size=8>&nbsp;&nbsp;{select_usr1}&#12288;
	<input {startnowdisable} type=submit value="走飞">&#12288;<input type=reset value="清除"></span>
	<span style="float: right">
	<input type=button value="资料刷新" onclick='location.reload()'></span>
	</td></tr>
</table>
</form>
<font color="red">※ 每个号码最多只能选择二种玩法并填入该玩法赔率！</font>


<script>
function chkform(f)
{
    var chknum = [0,0,0,0,0,0,0];
    var rate_err = 0;
    var count = 0;
    for (i=1; i<=6; i++) {
        if (eval("document.all.r"+i+"_1[0].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_1"].value == "" || f.all["r12_"+i+"_1"].value <= 0 || f.all["r12_"+i+"_1"].value > 2.8) {
				rate_err++;
			}
		}
        if (eval("document.all.r"+i+"_1[1].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_2"].value == "" || f.all["r12_"+i+"_2"].value <= 0 || f.all["r12_"+i+"_2"].value > 2.8) {
				rate_err++;
			}
		}
		if (eval("document.all.r"+i+"_2[0].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_3"].value == "" || f.all["r12_"+i+"_3"].value <= 0 || f.all["r12_"+i+"_3"].value > 2.8) {
				rate_err++;
			}
		}
		if (eval("document.all.r"+i+"_2[1].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_4"].value == "" || f.all["r12_"+i+"_4"].value <= 0 || f.all["r12_"+i+"_4"].value > 2.8) {
				rate_err++;
			}
		}
		if (eval("document.all.r"+i+"_3[0].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_5"].value == "" || f.all["r12_"+i+"_5"].value <= 0 || f.all["r12_"+i+"_5"].value > 3.6) {
				rate_err++;
			}
		}
		if (eval("document.all.r"+i+"_3[1].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_6"].value == "" || f.all["r12_"+i+"_6"].value <= 0 || f.all["r12_"+i+"_6"].value > 3.6) {
				rate_err++;
			}
		}
		if (eval("document.all.r"+i+"_3[2].checked") == true) {
			count++;
			chknum[i]++;
			if (f.all["r12_"+i+"_7"].value == "" || f.all["r12_"+i+"_7"].value <= 0 || f.all["r12_"+i+"_7"].value > 3.6) {
				rate_err++;
			}
		}
    }
    if (count < 2) {
        alert("请至少选择二组！");
        return false;
    }
	if(chknum[1]>2 || chknum[2]>2 || chknum[3]>2 || chknum[4]>2 || chknum[5]>2 || chknum[6]>2) {
		alert("每个号码最多只能选择二种玩法！");
        return false;
    }
	if(rate_err > 0) {
		alert("赔率填写错误！");
        return false;
	}
	if (f.b91.value-0 > 15) {
        alert("不合理的退水数值！");
		return false;
    } else {
		SetCookie("b91", f.b91.value);
	}
	if (f.b92.value-0 <= 0) {
        alert("走飞金额不可为 0.");
		return false;
    }
    f.submit.disabled = true;
    f.reset.disabled = true;
}

function nowdate()
{
	document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds())+"</b>";
	now.setTime(now.getTime() + 1000);
	setTimeout("nowdate()",1000);
}

function countdown()
{
	var str = "<font color=red><b>已经截止下注！</b></font>";
	if (timestap >= 0) {
		timediff = timestap;
		days = Math.floor(timediff / (60 * 60 * 24));
		timediff -= days * (60 * 60 * 24);
		hours = Math.floor(timediff / (60 * 60));
		timediff -= hours * (60 * 60);
		mins = Math.floor(timediff / (60));
		timediff -= mins * (60);
		secs = Math.floor(timediff);
	
		str = "距离截止下注时间还有 ";
		if (days > 0 ) str += "<b>" + days + "</b> 天 ";
		if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
		if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
		str += "<b>" + secs + "</b> 秒 ";
		timestap-=1;
	}
	countdownstr.innerHTML =  str;
	setTimeout("countdown()",1000)
}

var timestap = {timestap};
var now = new Date(1000 * {phptime});

nowdate();
countdown();

</script>   